import { defineStore } from 'pinia';

interface ActiveKeyState {
  activeKey: (string | number)[];
}
// 记录当前展开的分类
export const useActiveKeyStore = defineStore('activeKey', {
  state: (): ActiveKeyState => ({
    activeKey: [],
  }),
  actions: {
    setActiveKey(e) {
      this.activeKey = e;
    },
  },
});
